﻿
using System;
using System.Diagnostics;
using EasyComm.Contracts;
using EasyComm.Hosting;
using EasyComm.Hosting.Administration.Services;
namespace EasyComm.Module
{
    class Program
    {
        static void Main(string[] args)
        {
            WorkerAdminServiceHost adminHost = new WorkerAdminServiceHost(typeof(WorkerAdminService), new Type[] { typeof(IAdminWorkerContract) }, null);
            adminHost.Open();
            Trace.WriteLine(string.Format("WorkerAdmin listening on '{0}'...", adminHost.Contracts[0].ListenUri));
            Trace.WriteLine("");

            Trace.WriteLine("Press Enter key to exit.");
            Console.ReadLine();
            adminHost.Close();
        }
    }
}
